#include <bits/stdc++.h>
using namespace std;

using llt = long long;
using vi = vector<int>;
using vll = vector<llt>;

template<typename T>
void input(vector<T> & v, int n){
    v.assign(n + 1, {});
    for(int i=1;i<=n;++i) cin >> v[i];
    return;
}

template<typename T>
istream & operator >> (istream & is, vector<T> & v) {
    for(auto & i : v) is >> i;
    return is;
}



void work(){
    int N; cin >> N;
    vi A(N);
    cin >> A;
    for(int i=1;i<N;++i) cout << A[i - 1] * A[i] << " ";
    cout << "\n";
    return;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--) work();
    return 0;
}